# !/bin/sh

ARCHQMAKE=/usr//bin/qmake-qt4
if [ $# -ne 1 ];
then
	echo "param is default"
	exit
# else
	# echo $1
fi

if [ "$1"x = "dr"x ];
then
	echo "desk release project"
	QMAKE=$ARCHQMAKE
	CONFIG="CONFIG+=release"
elif [ "$1"x = "dd"x ];
then
	echo "desk debug project"
	QMAKE=$ARCHQMAKE
	CONFIG="CONFIG+=Debug"
fi

$QMAKE -project -Wall  -o  ./Convert.pro -after "QT += core gui widgets" "TARGET=./Debug/Convert" $CONFIG  "OBJECTS_DIR = ./Debug/OBJ/" "MOC_DIR = Debug/moc/" "UI_DIR=Debug/ui" "RC_FILE = conversion.rc"
$QMAKE -makefile ./Convert.pro  -o ./Makefile

make
